home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Aug 6, 1996
- // Author: steodosiadis
- //
- // Description:
- // These procs create the controls for a trim tool property sheet.
- // See also trimValues.mel for procs that set the state of the
- // property sheet.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
-
- global proc trimHistoryLink( string $parent, string $node )
- {
- setParent $parent;
-
- // selectedState:
- connectControl trimSelectedState ($node + ".sl");
-
- // trimOptions:
- connectControl -index 2 trimOptions ($node + ".sh");
-
- // slider for fitting tolerance:
- //
- connectControl fitTolerance($node + ".tol") ;
- }
-
- global proc trimProperties()
- //
- // Description:
- // This procedure builds the property sheet and assigns callbacks to
- // its controls. The state of the controls are set in trimValues().
- //
- //
- {
- int $hasNodes = 0;
-
- string $parent = `toolPropertyWindow -q -location`;
- string $curctx = `currentCtx`;
- string $node = `trimCtx -q -tnq $curctx`;
- string $ext_defaultToolID = "trimDefaultProperties";
-
- setUITemplate -pushTemplate OptionsTemplate;
-
- setParent $parent;
- columnLayout -adj true trim;
- separator -st "none";
- $parent = `setParent -query`;
-
- frameLayout -l "Trim Settings" -collapse false trimHistory_Frame;
- columnLayout trimHistory_Column;
- radioButtonGrp -nrb 2 -sl 1
- -l "Selected State"
- -l1 "Keep" -da1 0
- -l2 "Discard" -da2 1
- trimSelectedState;
-
- checkBoxGrp -ncb 1
- -l " "
- -l1 "Shrink surface"
- trimOptions;
-
- floatSliderGrp -field true -l "Fitting Tolerance" fitTolerance;
- setParent ..;
- setParent ..;
-
- trimHistoryLink( $parent, $node );
- commonModellingProperties( $parent, "trimCtx" );
- optionalCommonModellingSetCallbacks($parent,
- "trimCtx",
- "dontShowOutputStyle",
- "showKeepOriginals",
- "dontShowCurveRange",
- "dontShowRebuild");
-
- setParent ..; // columnLayout
-
- setUITemplate -popTemplate;
- }
-
-